// +----------------------------------------------------------------------
// | Project:   boxfish-android-commons  
// +----------------------------------------------------------------------
// | CreateTime: 15/12/1  下午5:59
// +----------------------------------------------------------------------
// | Author:     xab(xab@xabad.cn)
// +----------------------------------------------------------------------
// | Description:
// +----------------------------------------------------------------------
package cn.xabad.commons.sample.tools;

import cn.xabad.commons.sample.SampleApplication;
import cn.xabad.commons.tools.PathUtils;
import java.io.File;

/**
 * DESC   :
 * AUTHOR : Xabad
 */
public class PathU {

    private static File assetsDir;
    private static File imageCacheDir;
    private static File projectDir;
    public static PathU getInstance() {
        return SingletonHolder.INSTANCE;
    }

    private static class SingletonHolder {
        private static final PathU INSTANCE = new PathU();
    }

    public static File getAssetsDir() {
        return assetsDir;
    }
    public static File getProjectDir() {
        return projectDir;
    }
    public static File getImageCacheDir() {
        return imageCacheDir;
    }

    public void initDirs() {
        assetsDir = PathUtils.getInstance().generatePath("Boxfish", "Staticres", SampleApplication.context());
        projectDir = PathUtils.getInstance().generatePath("Boxfish", "Sample", SampleApplication
                .context());
    }

}
